using System;
using digit.Core;
using System.Data;

namespace SMS.ServiceManager
{
    public class CountryInfo
    {
        #region CONSTRUCTORS
        public CountryInfo()
        {

            this.m_countryID = Util.NULL_INT;
            this.m_countryName = Util.NULL_STRING;
            this.m_orderNo = Util.NULL_BYTE;
            this.m_createdBy = Util.NULL_STRING;
            this.m_createdDate = Util.NULL_DATETIME;
            this.m_status = Util.NULL_BYTE;
        }
        public CountryInfo(int countryID, string countryName, byte orderNo, string createdBy, DateTime createdDate, byte status)
        {

            this.m_countryID = countryID;
            this.m_countryName = countryName;
            this.m_orderNo = orderNo;
            this.m_createdBy = createdBy;
            this.m_createdDate = createdDate;
            this.m_status = status;
        }
        public CountryInfo(DataRow dRow)
        {

            this.m_countryID = (int)Util.ReplaceDBNullTo(dRow["countryID"], Util.NULL_INT);
            this.m_countryName = Util.ReplaceDBNullTo(dRow["countryName"], Util.NULL_STRING).ToString();
            this.m_orderNo = (byte)Util.ReplaceDBNullTo(dRow["orderNo"], Util.NULL_BYTE);
            this.m_createdBy = Util.ReplaceDBNullTo(dRow["createdBy"], Util.NULL_STRING).ToString();
            this.m_createdDate = (DateTime)Util.ReplaceDBNullTo(dRow["createdDate"], Util.NULL_DATETIME);
            this.m_status = (byte)Util.ReplaceDBNullTo(dRow["status"], Util.NULL_BYTE);
        }
        #endregion

        #region ATTRIBUTES
        private int m_countryID;
        private string m_countryName;
        private byte m_orderNo;
        private string m_createdBy;
        private DateTime m_createdDate;
        private byte m_status;
        #endregion

        #region PROPERTIES
        public int CountryID
        {
            get
            {
                return this.m_countryID;
            }
            set
            {
                this.m_countryID = value;
            }
        }

        public string CountryName
        {
            get
            {
                return this.m_countryName;
            }
            set
            {
                this.m_countryName = value;
            }
        }

        public byte OrderNo
        {
            get
            {
                return this.m_orderNo;
            }
            set
            {
                this.m_orderNo = value;
            }
        }

        public string CreatedBy
        {
            get
            {
                return this.m_createdBy;
            }
            set
            {
                this.m_createdBy = value;
            }
        }

        public DateTime CreatedDate
        {
            get
            {
                return this.m_createdDate;
            }
            set
            {
                this.m_createdDate = value;
            }
        }

        public byte Status
        {
            get
            {
                return this.m_status;
            }
            set
            {
                this.m_status = value;
            }
        }

        #endregion

    }
}